package com.traffic.between.config;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

import com.gxhl.gdp.core.properties.ConfigurableConstants;

/**
 * 
 * 类名称: BetweenProperties 类描述: 属性文件加载
 * 
 */
public class BetweenProperties extends ConfigurableConstants {
	
	public static String REDIS_HOST;
	public static String REDIS_PORT;
	public static String REDIS_PASSWORD;
	private static Logger LOG = Logger.getLogger(BetweenProperties.class);
	public static String FLOW_HOST;
	public static String CALLBACK_URL;//回调路径
	// 国信互联
	public static String GXHL_URL;
	public static String GXHL_APPKEY;
	public static String GXHL_SECURITYKEY;
	// 国信山东
	public static String GXHL_SD_APPKEY;
	public static String GXHL_SD_SECURITYKEY;
	// 流量（未知）
	public static String LIULIANG_URL;
	public static String LIULIANG_KEY;
	public static String LIULIANG_CLIENTCODE;
	// 浙江（未知）
	public static String ZHEJIANG_URL;
	public static String ZHEJIANG_APPKEY;
	public static String ZHEJIANG_APPSECRET;
	// 易分享
	public static String YIFX_URL;
	public static String YIFX_APPKEY;
	public static String YIFX_APPSECRET;
	// 大汉三通
	public static String DHST_ORDER_URL;
	public static String DHST_ORDERSTATUS_URL;
	public static String DHST_APPKEY;
	public static String DHST_SECURITYKEY;
	// 云上流量
	public static String YSLL_ORDER_URL;
	public static String YSLL_ORDERSTATUS_URL;
	public static String YSLL_APPKEY;
	public static String YSLL_SECURITYKEY;
	// 尚通科技
	public static String STKJ_ORDER_URL;
	public static String STKJ_ORDERSTATUS_URL;
	public static String STKJ_APPKEY;
	public static String STKJ_SECURITYKEY;
	// 晨祥
	public static String CXKJ_ORDER_URL;
	public static String CXKJ_ORDERSTATUS_URL;
	public static String CXKJ_APPKEY;
	public static String CXKJ_SECURITYKEY;
	// 云流量
	public static String YUNLL_ORDER_URL;
	public static String YUNLL_ORDERSTATUS_URL;
	public static String YUNLL_APPKEY;
	public static String YUNLL_SECURITYKEY;
	// 单元科技
	public static String DYKJ_ORDER_URL;
	public static String DYKJ_ORDERSTATUS_URL;
	public static String DYKJ_APPKEY;
	public static String DYKJ_SECURITYKEY;
	// 协美科技
	public static String XMKJ_ORDER_URL;
	public static String XMKJ_ORDERSTATUS_URL;
	public static String XMKJ_APPKEY;
	public static String XMKJ_SECURITYKEY;
	// 聚合
	public static String JUHE_ORDER_URL;
	public static String JUHE_ORDERSTATUS_URL;
	public static String JUHE_APPKEY;
	public static String JUHE_SECURITYKEY;
	public static String WO_ORDER_URL;
	public static String WO_ORDERSTATUS_URL;
	public static String WO_APPKEY;
	public static String WO_SECURITYKEY;

	// 流量无线
	public static String LLWX_ORDER_URL;
	public static String LLWX_ORDERSTATUS_URL;
	public static String LLWX_APPKEY;
	public static String LLWX_SECURITYKEY;

	// 深圳WO
	public static String SZLT_ORDER_URL;
	public static String SZLT_ORDERSTATUS_URL;
	public static String SZLT_APPKEY;
	public static String SZLT_SECURITYKEY;

	// 聪充
	public static String CC_ORDER_URL;
	public static String CC_ORDERSTATUS_URL;
	public static String CC_APPKEY;
	public static String CC_SECURITYKEY;

	// 麦峰通信
	public static String MF_ORDER_URL;
	public static String MF_ORDERSTATUS_URL;
	public static String MF_APPKEY;
	public static String MF_SECURITYKEY;
	// 海航
	public static String HNHH_ORDER_URL;
	public static String HNHH_ORDERSTATUS_URL;
	public static String HNHH_APPKEY;
	public static String HNHH_SECURITYKEY;
	// 易分享分省
	public static String YIFX_FS_APPKEY;
	public static String YIFX_FS_APPSECRET;
	// 国际漫游
	public static String GJMY_ORDER_URL;
	public static String GJMY_ORDERSTATUS_URL;
	public static String GJMY_APPKEY;
	public static String GJMY_SECURITYKEY;

	// 杭州乐尧
	public static String HZLY_ORDER_URL;
	public static String HZLY_ORDERSTATUS_URL;
	public static String HZLY_APPKEY;
	public static String HZLY_SECURITYKEY;
	public static String SHUORUAN_ORDER_URL;
	public static String SHUORUAN_ORDERSTATUS_URL;
	public static String SHUORUANFS_APPKEY;
	public static String SHUORUANFS_SECURITYKEY;
	public static String SHUORUANQG_APPKEY;
	public static String SHUORUANQG_SECURITYKEY;

	// 花蕾荟
	public static String HUALH_ORDER_URL;
	public static String HUALH_ORDER_CHANNELID;
	public static String HUALH_ORDER_KEY;

	// 福研
	public static String FUYAN_ORDER_URL;
	public static String FUYAN_APPKEY;
	public static String FUYAN_ORDERSTATUS_URL;
	public static String FUYAN_USERNAME;
	public static String FUYAN_PASSWORD;

	// 零点科技
	public static String LINGDIAN_ORDER_URL;
	public static String LINGDIAN_APPKEY;
	public static String LINGDIAN_USERNAME;
	public static String LINGDIAN_ORDERSTATUS_URL;

	// 尤纳康
	public static String YOUNAKANG_ORDER_URL;
	public static String YOUNAKANG_APPKEY;
	public static String YOUNAKANG_USERID;
	public static String YOUNAKANG_ORDERSTATUS_URL;

	// 中琛源
	public static String ZHONGCHENYUAN_ORDER_URL;
	public static String ZHONGCHENYUAN_INTERFACESIGN;
	public static String ZHONGCHENYUAN_USERNAME;
	public static String ZHONGCHENYUAN_PASSWORD;
	public static String ZHONGCHENYUAN_ORDERSTATUS_URL;

	// 月光光
	public static String YUEGUANGGUANG_ORDER_URL;
	public static String YUEGUANGGUANG_APPKEY;
	public static String YUEGUANGGUANG_USERID;
	public static String YUEGUANGGUANG_ORDERSTATUS_URL;

	// 南宁易赛
	public static String YISAI_ORDER_URL;
	public static String YISAI_USERSYSTEMKEY;
	public static String YISAI_ORDERSTATUS_URL;
	public static String YISAI_USERNUMBER;

	// 杰讯联合
	public static String JIEXUN_ORDER_URL;
	public static String JIEXUN_APPID;
	public static String JIEXUN_SIGNATURE;

	// 落基伟业
	public static String LUOJWY_ORDER_URL;
	public static String LUOJWY_APPKEY;
	public static String LUOJWY_ACCOUNT;

	// 五一卡
	public static String WUYIKA_ORDER_URL;
	public static String WUYIKA_ORDERSTATUS_URL;
	public static String WUYIKA_KEY;
	public static String WUYIKA_MERID;
	// 广州汇邦
	public static String HUIBANG_ORDER_URL;
	public static String HUIBANG_CUSTOMER;
	public static String HUIBANG_TOKEN;
	public static String HUIBANG_ORDERSTATUS_URL;

	// 林科 - 国信
	public static String LINKE_ORDER_URL;
	public static String LINKE_ORDERSTATUS_URL;
	public static String LINKE_CHANNEL;
	public static String LINKE_KEY;

	//云流
	public static String YUNLIU_ORDER_URL;
	public static String YUNLIU_ORDERSTATUS_URL;
	public static String YUNLIU_CUSTID;
	public static String YUNLIU_KEY;
	
	//微流在线
	public static String WEILIU_ORDER_URL;
	public static String WEILIU_ORDERSTATUS_URL;
	public static String WEILIU_ACCOUNT;
	public static String WEILIU_KEY;
	//百妙骏业
	public static String BAIMIAO_ORDER_URL;
	public static String BAIMIAO_ORDERSTATUS_URL;
	public static String BAIMIAO_PLATFORMID;
	public static String BAIMIAO_SECURITY;
	
	//云之讯
	public static  String YUNZX_ORDER_URL;
	public static  String YUNZX_ORDERSTATUS_URL;
	public static  String YUNZX_ACCOUNT;
	public static  String YUNZX_KEY;
	
	//荣景
	public static String RONGJING_SECRETKEY;
	public static String RONGJING_ORDER_URL;
	public static String RONGJING_CPID;
	
	//狂潮
	public static String KUANGCHAO_ORDER_URL;
	public static String KUANGCHAO_ORDERSTATUS_URL;
	public static String KUANGCHAO_TOKEN;
	public static String KUANGCHAO_CUSTOMER;
	
	//瀚悦
	public static String HANYUE_APPKEY;
	public static String HANYUE_SECURITYKEY;
	public static String HANYUE_ORDER_URL;
	
	//杭州有米
	public static String YOUMI_ORDER_URL;
	public static String YOUMI_ORDERSTATUS_URL;
	public static String YOUMI_KEY;
	public static String YOUMI_CPID;
	static {
		try {
			Properties prop = new Properties();
			InputStream in ;
			File file = new File("/data/wwwroot/conf/between.properties");//线上环境
			if (file.exists()) {
				//in =new BufferedInputStream(new FileInputStream("/data/wwwroot/conf/between.properties"));
				in = new BufferedInputStream(new FileInputStream(file));
			}else {
				in=BetweenProperties.class.getClassLoader().getResourceAsStream("between.properties");//本地环境
			}
			
			prop.load(in); // /加载属性列表
		    
		    REDIS_HOST = prop.getProperty("redis_host");
		    REDIS_PORT = prop.getProperty("redis_port");
			REDIS_PASSWORD = prop.getProperty("redis_password");
			
			FLOW_HOST = prop.getProperty("traffic.host");
			CALLBACK_URL = prop.getProperty("callback_url");
			GXHL_URL = prop.getProperty("gxhl_url");

			GXHL_APPKEY = prop.getProperty("gxhl_appkey");

			GXHL_SECURITYKEY = prop.getProperty("gxhl_securityKey");

			GXHL_SD_APPKEY = prop.getProperty("gxhl_sd_appkey");

			GXHL_SD_SECURITYKEY = prop.getProperty("gxhl_sd_securityKey");

			LIULIANG_URL = prop.getProperty("liuliang_url");

			LIULIANG_KEY = prop.getProperty("liuliang_key");

			LIULIANG_CLIENTCODE = prop.getProperty("liuliang_clientCode");

			ZHEJIANG_URL = prop.getProperty("zhejiang_url");
			ZHEJIANG_APPKEY = prop.getProperty("zhejiang_appKey");
			ZHEJIANG_APPSECRET = prop.getProperty("zhejiang_appSecret");

			YIFX_URL = prop.getProperty("yifx_url");
			YIFX_APPKEY = prop.getProperty("yifx_appKey");
			YIFX_APPSECRET = prop.getProperty("yifx_appSecret");

			DHST_ORDER_URL = prop.getProperty("dhst_order_url");
			DHST_ORDERSTATUS_URL = prop.getProperty("dhst_orderStatus_url");
			DHST_APPKEY = prop.getProperty("dhst_appkey");
			DHST_SECURITYKEY = prop.getProperty("dhst_securityKey");

			YSLL_ORDER_URL = prop.getProperty("ysll_order_url");
			YSLL_ORDERSTATUS_URL = prop.getProperty("ysll_orderStatus_url");
			YSLL_APPKEY = prop.getProperty("ysll_appkey");
			YSLL_SECURITYKEY = prop.getProperty("ysll_securityKey");

			STKJ_ORDER_URL = prop.getProperty("stkj_order_url");
			STKJ_ORDERSTATUS_URL = prop.getProperty("stkj_orderStatus_url");
			STKJ_APPKEY = prop.getProperty("stkj_appkey");
			STKJ_SECURITYKEY = prop.getProperty("stkj_securityKey");

			CXKJ_ORDER_URL = prop.getProperty("cxkj_order_url");
			CXKJ_ORDERSTATUS_URL = prop.getProperty("cxkj_orderStatus_url");
			CXKJ_APPKEY = prop.getProperty("cxkj_appkey");
			CXKJ_SECURITYKEY = prop.getProperty("cxkj_securityKey");

			YUNLL_ORDER_URL = prop.getProperty("yunll_order_url");
			YUNLL_ORDERSTATUS_URL = prop.getProperty("yunll_orderStatus_url");
			YUNLL_APPKEY = prop.getProperty("yunll_appkey");
			YUNLL_SECURITYKEY = prop.getProperty("yunll_securityKey");

			DYKJ_ORDER_URL = prop.getProperty("dykj_order_url");
			DYKJ_ORDERSTATUS_URL = prop.getProperty("dykj_orderStatus_url");
			DYKJ_APPKEY = prop.getProperty("dykj_appkey");
			DYKJ_SECURITYKEY = prop.getProperty("dykj_securityKey");

			XMKJ_ORDER_URL = prop.getProperty("xmkj_order_url");
			XMKJ_ORDERSTATUS_URL = prop.getProperty("xmkj_orderStatus_url");
			XMKJ_APPKEY = prop.getProperty("xmkj_appkey");
			XMKJ_SECURITYKEY = prop.getProperty("xmkj_securityKey");

			JUHE_ORDER_URL = prop.getProperty("juhe_order_url");
			JUHE_ORDERSTATUS_URL = prop.getProperty("juhe_orderStatus_url");
			JUHE_APPKEY = prop.getProperty("juhe_appkey");
			JUHE_SECURITYKEY = prop.getProperty("juhe_securityKey");

			WO_ORDER_URL = prop.getProperty("wo_order_url");
			WO_ORDERSTATUS_URL = prop.getProperty("wo_orderStatus_url");
			WO_APPKEY = prop.getProperty("wo_appkey");
			WO_SECURITYKEY = prop.getProperty("wo_securityKey");

			LLWX_ORDER_URL = prop.getProperty("llwx_order_url");
			LLWX_ORDERSTATUS_URL = prop.getProperty("llwx_orderStatus_url");
			LLWX_APPKEY = prop.getProperty("llwx_appkey");
			LLWX_SECURITYKEY = prop.getProperty("llwx_securityKey");

			SZLT_ORDER_URL = prop.getProperty("szlt_order_url");
			SZLT_ORDERSTATUS_URL = prop.getProperty("szlt_orderStatus_url");
			SZLT_APPKEY = prop.getProperty("szlt_appkey");
			SZLT_SECURITYKEY = prop.getProperty("szlt_securityKey");

			CC_ORDER_URL = prop.getProperty("cc_order_url");
			CC_ORDERSTATUS_URL = prop.getProperty("cc_orderStatus_url");
			CC_APPKEY = prop.getProperty("cc_appkey");
			CC_SECURITYKEY = prop.getProperty("cc_securityKey");

			MF_ORDER_URL = prop.getProperty("maifeng_order_url");
			MF_ORDERSTATUS_URL = prop.getProperty("maifeng_orderStatus_url");
			MF_APPKEY = prop.getProperty("maifeng_appkey");
			MF_SECURITYKEY = prop.getProperty("maifeng_securityKey");

			HNHH_ORDER_URL = prop.getProperty("hnhh_order_url");
			HNHH_ORDERSTATUS_URL = prop.getProperty("hnhh_orderStatus_url");
			HNHH_APPKEY = prop.getProperty("hnhh_appkey");
			HNHH_SECURITYKEY = prop.getProperty("hnhh_securityKey");
			YIFX_FS_APPKEY = prop.getProperty("yifx_fs_appKey");
			YIFX_FS_APPSECRET = prop.getProperty("yifx_fs_appSecret");

			GJMY_ORDER_URL = prop.getProperty("gjmy_order_url");
			GJMY_ORDERSTATUS_URL = prop.getProperty("gjmy_orderStatus_url");
			GJMY_APPKEY = prop.getProperty("gjmy_appkey");
			GJMY_SECURITYKEY = prop.getProperty("gjmy_securityKey");

			HZLY_ORDER_URL = prop.getProperty("hzly_order_url");
			HZLY_ORDERSTATUS_URL = prop.getProperty("hzly_orderStatus_url");
			HZLY_APPKEY = prop.getProperty("hzly_appkey");
			HZLY_SECURITYKEY = prop.getProperty("hzly_securityKey");
			SHUORUAN_ORDER_URL = prop.getProperty("shuoruan_order_url");
			SHUORUAN_ORDERSTATUS_URL = prop.getProperty("shuoruan_orderStatus_url");
			SHUORUANFS_APPKEY = prop.getProperty("shuoruanfs_appkey");
			SHUORUANFS_SECURITYKEY = prop.getProperty("shuoruanfs_securityKey");
			SHUORUANQG_APPKEY = prop.getProperty("shuoruanqg_appkey");
			SHUORUANQG_SECURITYKEY = prop.getProperty("shuoruanqg_securityKey");

			HUALH_ORDER_URL = prop.getProperty("hualh_order_url");
			HUALH_ORDER_CHANNELID = prop.getProperty("hualh_order_channelid");
			HUALH_ORDER_KEY = prop.getProperty("hualh_order_key");

			FUYAN_ORDER_URL = prop.getProperty("fuyan_order_url");
			FUYAN_APPKEY = prop.getProperty("fuyan_appkey");
			FUYAN_ORDERSTATUS_URL = prop.getProperty("fuyan_orderstatus_url");
			FUYAN_USERNAME = prop.getProperty("fuyan_username");
			FUYAN_PASSWORD = prop.getProperty("fuyan_password");

			LINGDIAN_ORDER_URL = prop.getProperty("lingdian_order_url");
			LINGDIAN_APPKEY = prop.getProperty("lingdian_appkey");
			LINGDIAN_USERNAME = prop.getProperty("lingdian_username");
			LINGDIAN_ORDERSTATUS_URL = prop.getProperty("lingdian_orderstatus_url");

			YOUNAKANG_ORDER_URL = prop.getProperty("younakang_order_url");
			YOUNAKANG_APPKEY = prop.getProperty("younakang_appkey");
			YOUNAKANG_USERID = prop.getProperty("younakang_userid");
			YOUNAKANG_ORDERSTATUS_URL = prop.getProperty("younakang_orderstatus_url");

			ZHONGCHENYUAN_INTERFACESIGN = prop.getProperty("zhongchenyuan_interfacesign");
			ZHONGCHENYUAN_ORDER_URL = prop.getProperty("zhongchenyuan_order_url");
			ZHONGCHENYUAN_USERNAME = prop.getProperty("zhongchenyuan_username");
			ZHONGCHENYUAN_PASSWORD = prop.getProperty("zhongchenyuan_password");
			ZHONGCHENYUAN_ORDERSTATUS_URL = prop.getProperty("zhongchenyuan_orderstatus_url");

			YUEGUANGGUANG_ORDER_URL = prop.getProperty("yueguangguang_order_url");
			YUEGUANGGUANG_APPKEY = prop.getProperty("yueguangguang_appkey");
			YUEGUANGGUANG_USERID = prop.getProperty("yueguangguang_userid");
			YUEGUANGGUANG_ORDERSTATUS_URL = prop.getProperty("yueguangguang_orderstatus_url");

			YISAI_ORDER_URL = prop.getProperty("yisai_order_url");
			YISAI_USERSYSTEMKEY = prop.getProperty("yisai_usersystemkey");
			YISAI_ORDERSTATUS_URL = prop.getProperty("yisai_orderstatus_url");
			YISAI_USERNUMBER = prop.getProperty("yisai_usernumber");

			JIEXUN_ORDER_URL = prop.getProperty("jiexun_order_url");
			JIEXUN_APPID = prop.getProperty("jiexun_appid");
			JIEXUN_SIGNATURE = prop.getProperty("jiexun_signature");

			LUOJWY_ORDER_URL = prop.getProperty("luojwy_order_url");
			LUOJWY_APPKEY = prop.getProperty("luojwy_appkey");
			LUOJWY_ACCOUNT = prop.getProperty("luojwy_account");

			WUYIKA_ORDER_URL = prop.getProperty("wuyika_order_url");
			WUYIKA_ORDERSTATUS_URL = prop.getProperty("wuyika_orderstatus_url");
			WUYIKA_KEY = prop.getProperty("wuyika_key");
			WUYIKA_MERID = prop.getProperty("wuyika_merid");

			HUIBANG_TOKEN = prop.getProperty("huibang_token");
			HUIBANG_CUSTOMER = prop.getProperty("huibang_customer");
			HUIBANG_ORDER_URL = prop.getProperty("huibang_order_url");
			HUIBANG_ORDERSTATUS_URL = prop.getProperty("huibang_orderstatus_url");

			LINKE_ORDER_URL = prop.getProperty("linke_order_url");
			LINKE_ORDERSTATUS_URL = prop.getProperty("linke_orderstatus_url");
			LINKE_CHANNEL = prop.getProperty("linke_channel");
			LINKE_KEY = prop.getProperty("linke_key");
			
			YUNLIU_ORDER_URL = prop.getProperty("yunliu_order_url");
		    YUNLIU_ORDERSTATUS_URL = prop.getProperty("yunliu_orderstatus_url");
		    YUNLIU_CUSTID = prop.getProperty("yunliu_custid");
			YUNLIU_KEY = prop.getProperty("yunliu_key");
			
			WEILIU_ORDER_URL =prop.getProperty("weiliu_order_url");
			WEILIU_ORDERSTATUS_URL = prop.getProperty("weiliu_orderstatus_url");
			WEILIU_ACCOUNT  = prop.getProperty("weiliu_account");
			WEILIU_KEY = prop.getProperty("weiliu_key");
			
			BAIMIAO_ORDER_URL = prop.getProperty("baimiao_order_url");
			BAIMIAO_ORDERSTATUS_URL = prop.getProperty("baimiao_orderstatus_url");
			BAIMIAO_PLATFORMID = prop.getProperty("baimiao_platformid");
			BAIMIAO_SECURITY = prop.getProperty("baimiao_security");
		
			YUNZX_ORDER_URL = prop.getProperty("yunzx_order_url");
			YUNZX_ORDERSTATUS_URL = prop.getProperty("yunzx_orderstatus_url");
			YUNZX_ACCOUNT = prop.getProperty("yunzx_account");
			YUNZX_KEY =  prop.getProperty("yunzx_key");
			
			RONGJING_SECRETKEY = prop.getProperty("rongjing_secretkey");
		    RONGJING_ORDER_URL = prop.getProperty("rongjing_order_url");
			RONGJING_CPID = prop.getProperty("rongjing_cpid");
			
		    KUANGCHAO_ORDER_URL = prop.getProperty("kuangchao_order_url");
			KUANGCHAO_ORDERSTATUS_URL = prop.getProperty("kuangchao_orderstatus_url");
			KUANGCHAO_TOKEN = prop.getProperty("kuangchao_token");
			KUANGCHAO_CUSTOMER = prop.getProperty("kuangchao_customer");
			
			HANYUE_APPKEY = prop.getProperty("hanyue_appkey");
			HANYUE_SECURITYKEY = prop.getProperty("hanyue_securitykey");
			HANYUE_ORDER_URL = prop.getProperty("hanyue_order_url");

			YOUMI_ORDER_URL= prop.getProperty("youmi_order_url");
			YOUMI_ORDERSTATUS_URL= prop.getProperty("youmi_orderstatus_url");
			YOUMI_KEY = prop.getProperty("youmi_key");
			YOUMI_CPID = prop.getProperty("youmi_cpid");
			in.close();
		} catch (Exception e) {		
			LOG.error("BetweenProperties - 配置文件出错："+e.getMessage());
		}
	}
	public static void main(String[] args) {
		Properties pro = new Properties();
		InputStream in;
		try {
			//in = ClassLoader.getSystemResourceAsStream("between.properties"); 
		
			in = BetweenProperties.class.getClassLoader().getResourceAsStream("between.properties");   
			pro.load(in);
			System.out.println(pro.getProperty("weiliu_orderstatus_url"));
			in.close();
		} catch (Exception e) {
			
			e.printStackTrace();
		}
	
	}
}
